package com.hmall.mapper;

import com.hmall.model.MallAttrValue;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallAttrValueMapper extends MyMapper<MallAttrValue> {
    int checkCategory(String category);

    int checkFineness(String fineness);

    int checkGloss(String gloss);

    int checkSection(String section);

    int checkPore_numberId(String pore_numberId);

    int checkSingle_shareId(String single_shareId);

    int checkModel(String model);

    int checkColor(String color);

    int checkGrade(String grade);

    int myInsert(@Param("mallAttrValue") MallAttrValue mallAttrValue);

    int findId(@Param("mallAttrValue") MallAttrValue mallAttrValue);

    List<MallAttrValue> selectKeywords(@Param("query") String query);

    String[] selectValueById(@Param("parent_id") Integer parent_id);

    void deleteByValueAndId(@Param("s") String s, @Param("parent_id") Integer parent_id);

    int checkTwisting(String twisting);

    int checkNetwork(String network);

    Integer selectByQuery(@Param("s") String s,@Param("parent_id") Integer parent_id);

    Integer[] select1();
}